import {API} from '../api/index.js'



/**
 * 添加/编辑银行卡
 * @param {*} param 
 */
const _addEditUserCard = function(param) {
    const url = "/mobile/user/addEditUserCard";
    const result = API.post(url,param);
    return result;
};

/**
 * 获取用户银行账户
 * @param {*} param 
 */
const _getUserBankList = function(param) {
    const url = "/mobile/user/getUserBankList";
    const result = API.post(url,param);
    return result;
};


/**
 * 银行卡设为默认
 * @param {*} param 
 */
const _setChecked = function(param) {
    const url = "/mobile/user/setChecked";
    const result = API.post(url,param);
    return result;
};




export {
    _addEditUserCard,
    _getUserBankList,
    _setChecked
}